HTMLify

style.css
Views: 52 | Author: cody
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300&display=swap");

* {
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  font-weight: normal;
  background: linear-gradient(to right, #00afff, #00ff6c);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
  overflow: hidden;
  margin: 0;
}

.main-container {
  background-color: rgba(255, 255, 255, 0.863);
  border-radius: 10px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1), 0 6px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
  padding: 10px;
  max-width: 100%;
  width: 800px;
}

.anime-container h3 {
  font-size: 20px;
  font-weight: 600;
  text-transform: capitalize;
  padding-bottom: 10px;
  letter-spacing: 0.9px;
}

.anime-container h2 {
  line-height: 30px;
  word-spacing: 1px;
  margin-bottom: 30px;
  position: relative;
}

.get-anime {
  margin-bottom: 30px;
  background-color: rgba(0, 0, 0, 0.774);
  color: #fff;
  padding: 10px 30px;
  border: none;
  border-radius: 6px;
  outline: none;
  font-size: 16px;
  font-weight: 200;
  cursor: pointer;
  letter-spacing: 1px;
}

.save {
  margin-bottom: 30px;
  background-color: rgba(0, 0, 0, 0.774);
  color: #fff;
  padding: 10px 30px;
  border: none;
  border-radius: 6px;
  outline: none;
  font-size: 16px;
  font-weight: 200;
  cursor: pointer;
  letter-spacing: 1px;
  display: inline-block;
  display: none;
}

.anime-box {
  display: none;
}

.anime-box img {
  height: 300px;
  width: 300px;
  border-radius: 50%;
  border: 10px solid #005da3;
  align-items: center;
}

.hero-name {
  margin-bottom: 30px;
  background-color: rgba(0, 0, 0, 0.774);
  color: #fff;
  padding: 10px 30px;
  border: none;
  border-radius: 6px;
  outline: none;
  font-size: 17px;
  font-weight: bold;
}

.anime-loader {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background-color: rgba(255, 255, 255, 0.8);
  z-index: 1;
}

.loader {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #3498db;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  animation: spin 2s linear infinite;
  position: absolute;
  top: 50%;
  left: 50%;
  margin-top: -15px;
  margin-left: -15px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@media screen and (max-width: 500px) {
  .main-container {
    width: 450px;
    flex-wrap: wrap;
  }
}

Comments